package com.two.lbms.vo;

import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 
 * @author hjx
 * @Date 2023/7/28 20:21
 * @version V1.0
 */
    
@Data
@AllArgsConstructor
@NoArgsConstructor
public class RenewList {
    /**
    * 续借
    */
    private Integer id;

    /**
    * 图书id
    */
    private Integer bookId;

    /**
    * 读者id
    */
    private Integer readerId;

    /**
    * 到期时间
    */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime dueDate;

    /**
    * 创建时间
    */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime createDate;

    /**
    * 更新时间
    */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime updateDate;

    /**
    * 管理员名
    */
    @Size(max = 30,message = "管理员名最大长度要小于 30")
    private String adminName;

    /**
    * 是否有效
    */
    private Integer isValid;
}